|
|
|
|
SetContents Method, SftTree Class |
Updates the control with data from an XML document.
Syntax SftTree Class (Softelvdm.SftTreeNET)
VB |
Public Shared Sub SetContents( _ |
C# |
public static void SetContents( |
C++ |
public: static void SetContents( |
contents
Defines processing options.
Value |
Description |
|
0 | No data is transferred. | |
1 | All item definitions are saved/loaded. | |
2 | All header definitions are saved/loaded. | |
4 | All footer definitions are saved/loaded. | |
7 | All content definitions (items, headers and footers) are saved/loaded. | |
256 | All control property definitions are saved/loaded. | |
65535 | All definitions are saved/loaded. |
doc
The XML document.
SftTreeControl
Defines the SftTree/NET control to be updated.
Comments
The SetContents method updates the control with data from an XML document.
Saving/loading the tree control contents using GetContents/SetContents saves/loads all data of the specified category (contents parameter). An application may wish to limit the amount of data saved by implementing its own save/load mechanism and save only the properties that are needed. Alternatively, if an application has an external data source, it may rebuild the tree control contents from its own data source, which may be significantly faster than an XML document. By implementing its own save/load mechanism an application could use a regular file or a custom format, which may also be significantly faster than an XML document.